package org.emaait.app.test;

import org.hyperic.sigar.CpuPerc;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;


public class CPUsage {
	public static void main(String[] args) throws SigarException {
		System.setProperty("java.library.path", "D:\\development\\lib\\sigar");
		Sigar sigar=new Sigar();
		CpuPerc cpc=sigar.getCpuPerc();
		double user=cpc.getUser();
		double sys=cpc.getSys();
		System.out.println("User:"+user);
		System.out.println("System:"+sys);
	}

}
